
package com.dubbo1.lib.cloud.impl;

import com.dubbo1.api.dto.DubboBaseDto;
import com.dubbo1.api.dto.req.Dubbo1ParamDto;
import com.dubbo1.lib.cloud.Dubbo2Cloud;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class Dubbo2CloudImpl implements FallbackFactory<Dubbo2Cloud> {

    private final String feignClientName = "nacos2-service";


    @Override
    public Dubbo2Cloud create(Throwable throwable) {
        return new Dubbo2Cloud() {
            @Override
            public DubboBaseDto dubbo2test(Dubbo1ParamDto req) {
                return null;
            }

            @Override
            public DubboBaseDto dubbo2test2(Dubbo1ParamDto req) {
                return null;
            }
        };
    }
}

